package com.ferris.redbook.constant;

public class FileConstants {

    // 文件类型
    public static final String TYPE_IMAGE = "image";
    public static final String TYPE_VIDEO = "video";
    public static final String TYPE_DOCUMENT = "document";

    // 文件分类
    public static final String CATEGORY_AVATAR = "avatar";
    public static final String CATEGORY_POST = "post";
    public static final String CATEGORY_COVER = "cover";
    public static final String CATEGORY_TEMP = "temp";

    // 图片处理配置
    public static final int AVATAR_MAX_SIZE = 500; // 头像最大尺寸
    public static final int THUMBNAIL_MAX_SIZE = 300; // 缩略图最大尺寸

    // 错误消息
    public static final String ERROR_FILE_EMPTY = "文件不能为空";
    public static final String ERROR_FILE_TOO_LARGE = "文件大小超过限制";
    public static final String ERROR_FILE_TYPE_NOT_SUPPORTED = "不支持的文件类型";
}